<%-- 
    Document   : w_staffhome
    Created on : Oct 25, 2013, 12:34:43 PM
    Author     : Trang
--%>

<%@page import="model.Role"%>
<%@page import="model.Staff"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<%
    Staff staff = (Staff) session.getAttribute("staff");

    if (staff == null) {
        response.sendRedirect(request.getContextPath() + "/Administration");
    } else {
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
        <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
        <title>Administration - Staff Home</title>
        <link href="<%= request.getContextPath()%>/css/style_for_page.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_for_menu.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_for_warehousing.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_addtion.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/adMenu.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/tHeaderFooter.css" rel="stylesheet" type="text/css"/>
    </head>
    <script language="javascript">
        cusor = '+';
        count = 0;
        mess = 'Member Page';

        function type()
        {
            if (cusor === '+')
                cusor = ' ';
            else
                cusor = '+';
            document.getElementById('abc').innerHTML = mess.substring(0, count++) + cusor;
            if (count <= mess.length)
                setTimeout("type()", 80);
//                     type();
        }

    </script>
    <body style="background-color: lightsteelblue;" onload="type();">
        <div class="headerbg">
            <div class="header"> 
                <%@include file="/include/mHeader.jsp" %>
            </div>
            <div class="adContent">
                <div class="adMenu">
                    <%@include file="/include/mMenu.jsp" %>
                </div>
            </div>
        </div>
        <div class="contentbg">
            <div class="content">
                <div id="abc" style="width: 1024px; color: white; background-color: #610B0B; float:left;margin:auto;">
                    <h3 style="margin-left: 20px;">Member Page</h3>
                </div>
                <div class="registerbg" >
                    <div class="staffLink">
                        <h3>Control Panel</h3>
                        <%@include file="/include/mProfileMenu.jsp" %>
                    </div>
                    <div class="staffInformation">
                        <p><s:actionmessage escape="false"/></p>
                        <p><b>You have logged in with the following information:</b></p>
                        <%
                            out.println(staff.displayInfo());
                        %>
                    </div>   
                </div> 
            </div>
        </div>
        <footer>
            <div id="footer">
                <%@include file="/include/iFooter.jsp" %>
            </div>   
        </footer>

    </body>
</html>
<%
    }
%>
